﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace ET.Score.Service.Dtos
{
    [DataContract]
    [KnownType(typeof(ScoreSummary))]
    [KnownType(typeof(String))]
    [KnownType(typeof(VobcAdvInfDto))]
    public class CAdvMessage
    {
        /// <summary>
        /// 内容
        /// </summary>
        /// 
        [DataMember]
        public object Content { get; set; }
        /// <summary>
        /// 信息所对应的客户端地址
        /// </summary>
        [DataMember]
        public string ClientAddr { get; set; }

        /// <summary>
        /// 1、司机驾驶分数及vobc信息， 6.司机驾驶任务信息  7.司机驾驶考核列车离站信息 8,折返任务信息,9：驾驶任务结束标志,10用户登录 11.分数计算中
        /// </summary>
        [DataMember]
        public int code { get; set; }      
        /// <summary>
        /// 消息生成的时间
        /// </summary>
        [DataMember]
        public DateTime Msgtime { get; set; }
        /// <summary>
        /// 该信息是否被发送过
        /// </summary>
        [DataMember]
        public bool IsSend { get; set; }
    }
}
